<?php
	class SearchModel extends Model{
		public function searchAction(){
                $key = $_POST["key"];
				$sql = "select * from activity where activityName like '%{$key}%'  or activityContent like '%{$key}%'";
				$row = $this->link->selectDB($sql);
                echo json_encode($row);
		}
	}
	
?>